/*
 * @Author:
 * @Date: 2023-06-27 10:52:46
 * @LastEditors:
 * @LastEditTime: 2023-08-07 17:53:52
 * @FilePath: \immoka-admin\src\api\petsManagement\index.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request'

// 用户萌宠列表
export function petUserList(query) {
    return request({
        url: '/api/pet/user/list',
        method: 'get',
        params: query
    })
}

// 萌宠图鉴列表
export function shapeList(query) {
    return request({
        url: '/api/shape/list',
        method: 'get',
        params: query
    })
}
// 编辑奖励
export function shapeSave(query) {
    return request({
        url: '/api/shape/save',
        method: 'post',
        data: query
    })
}
// 宠物蛋列表
export function petEggList(query) {
    return request({
        url: '/api/pet/egg/list',
        method: 'get',
        params: query
    })
}
// 宠物蛋上下架
export function petEggIsShow(query) {
    return request({
        url: '/api/pet/egg/is_show',
        method: 'post',
        data: query
    })
}
// 宠物蛋保存/编辑
export function petEggSave(query) {
    return request({
        url: '/api/pet/egg/save',
        method: 'post',
        data: query
    })
}

// 宠物技能列表
export function petSkillList(query) {
    return request({
        url: '/api/pet/skill/list',
        method: 'get',
        params: query
    })
}
// 宠物技能添加/编辑
export function petSkillSave(query) {
    return request({
        url: '/api/pet/skill/save',
        method: 'post',
        data: query
    })
}
// 宠物技能上下架
export function petSkillIsShow(query) {
    return request({
        url: '/api/pet/skill/is_show',
        method: 'post',
        data: query
    })
}

// 宠物等级列表
export function petLevelList(query) {
    return request({
        url: '/api/pet/level/list',
        method: 'get',
        params: query
    })
}
// 宠物添加
export function petLevelSave(query) {
    return request({
        url: '/api/pet/level/save',
        method: 'post',
        data: query
    })
}
// 宠物编辑
export function petLevelEdit(query) {
    return request({
        url: '/api/pet/level/edit',
        method: 'post',
        data: query
    })
}

// 宠物品质
export function petQualityList(query) {
    return request({
        url: '/api/pet/quality/list',
        method: 'get',
        params: query
    })
}
// 宠物品质编辑
export function petQualitySave(query) {
    return request({
        url: '/api/pet/quality/save',
        method: 'post',
        data: query
    })
}

// 宠物属性
export function petPropertyList(query) {
    return request({
        url: '/api/pet/property/list',
        method: 'get',
        params: query
    })
}
// 宠物属性编辑
export function petPropertySave(query) {
    return request({
        url: '/api/pet/property/save',
        method: 'post',
        data: query
    })
}

// 宠物属性等级
export function petPropertyLevelList(query) {
    return request({
        url: '/api/pet/property/level/list',
        method: 'get',
        params: query
    })
}
// 宠物属性等级编辑
export function petPropertyLevelSave(query) {
    return request({
        url: '/api/pet/property/level/save',
        method: 'post',
        data: query
    })
}

// 任务列表
export function petTaskList(query) {
    return request({
        url: '/api/pet/task/list',
        method: 'get',
        params: query
    })
}
// 任务列表编辑
export function petTaskSave(query) {
    return request({
        url: '/api/pet/task/save',
        method: 'post',
        data: query
    })
}

// 设置列表
export function petSettingList(query) {
    return request({
        url: '/api/pet/setting/list',
        method: 'get',
        params: query
    })
}
// 设置列表编辑
export function petSettingSave(query) {
    return request({
        url: '/api/pet/setting/save',
        method: 'post',
        data: query
    })
}

// 性格列表
export function petCharacterList(query) {
    return request({
        url: '/api/pet/character/list',
        method: 'get',
        params: query
    })
}
// 新增/编辑性格
export function petCharacterSave(query) {
    return request({
        url: '/api/pet/character/save',
        method: 'post',
        data: query
    })
}

// 重置用户改名时间
export function userDeleteLock(query) {
    return request({
        url: '/api/pet/user/delete/lock',
        method: 'get',
        params: query
    })
}

// 品质技能保存
export function qualitySkillSave(query) {
    return request({
        url: '/api/pet/quality/skill/save',
        method: 'post',
        data: query
    })
}

// 品质技能列表
export function qualityList(query) {
    return request({
        url: '/api/pet/quality/skill/list',
        method: 'get',
        params: query
    })
}

// 萌宠道具保存
export function petPropSave(query) {
    return request({
        url: '/api/pet/prop/save',
        method: 'post',
        data: query
    })
}
// 萌宠道具列表
export function petPropList(query) {
    return request({
        url: '/api/pet/prop/list',
        method: 'get',
        params: query
    })
}

// 萌宠奖励列表
export function petPrizeList(query) {
    return request({
        url: '/api/pet/prize/list',
        method: 'get',
        params: query
    })
}
// 萌宠奖励保存
export function petPrizeSave(query) {
    return request({
        url: '/api/pet/prize/save',
        method: 'post',
        data: query
    })
}
// 萌宠奖励删除
export function petPrizeDelete(query) {
    return request({
        url: '/api/pet/prize/delete',
        method: 'post',
        data: query
    })
}

// 装扮
export function productList(params) {
    return request({
      url: "/mall/product/list",
      method: "get",
      params: params
    });
}

// 萌宠互动
export function interactList(query) {
    return request({
        url: '/api/pet/interact/list',
        method: 'get',
        params: query
    })
}
// 萌宠互动
export function interactSave(query) {
    return request({
        url: '/api/pet/interact/save',
        method: 'post',
        data: query
    })
}

// 技能tag列表
export function petSkillTagList(query) {
    return request({
        url: '/api/pet/skill/tag/list',
        method: 'get',
        params: query
    })
}

// 洗练任务列表
export function balanceTaskList(query) {
    return request({
        url: '/api/pet/balance/task/list',
        method: 'get',
        params: query
    })
}
// 洗练任务- 保存/编辑
export function balanceTaskSave(query) {
    return request({
        url: '/api/pet/balance/task/save',
        method: 'post',
        data: query
    })
}
// 洗练任务-任务奖励列表
export function balanceTaskPrizeList(query) {
    return request({
        url: '/api/pet/balance/task/prize/list',
        method: 'get',
        params: query
    })
}
// 洗练任务奖励- 保存/编辑
export function balanceTaskPrizeSave(query) {
    return request({
        url: '/api/pet/balance/task/prize/save',
        method: 'post',
        data: query
    })
}
// 洗练任务奖励- 删除
export function balanceTaskPrizeDelete(query) {
    return request({
        url: '/api/pet/balance/task/prize/delete',
        method: 'post',
        data: query
    })
}
